package exchange;

public class A {
	private static final double EXCHANGE_RATE = 3.4;
	private double valueInDollars;
	private double valueInShekels;

	public A() {
		valueInDollars = 0;
		valueInShekels = EXCHANGE_RATE * valueInDollars;
	}

	public double getValueInDollars() {
		return valueInDollars;
	}

	public double getValueInShekels() {
		return valueInShekels;
	}

	public void setValueInDollars(double valueInDollars) {
		this.valueInDollars = valueInDollars;
		this.valueInShekels = valueInDollars / EXCHANGE_RATE;
	}

	public void setValueInShekels(double valueInShekels) {
		this.valueInShekels = valueInShekels;
		this.valueInDollars = valueInShekels * EXCHANGE_RATE;
	}
}
